import Vue from 'vue'
import VueRouter from 'vue-router'

import CaseAndFileManager from '@/components/CaseAndFileManager.vue'
import PdfOCR from '@/components/PdfOCR.vue'
import Page404 from '@/components/404.vue'
import Page401 from '@/components/401.vue'


Vue.use(VueRouter)

const router = new VueRouter({
    // mode: 'history',
    routes : [
        { path: '*', redirect: '/404' },
        { path: '/case/:id', name: "CaseAndFileManager", component: CaseAndFileManager },
        { path: '/case/:id/pdfOCR/:did', name:"PdfOCR", component: PdfOCR },
        { path: '/404', name:"404", component: Page404},
        { path: '/401',name:"401", component: Page401}
    ]
})

export default router